#include "filter.h"
#include "blacklist.h"
#include "filename.h"

static filter_f const filters [3]= 
{
	filter_filename,
	filter_blacklist,
	0
};

int filter (char const * const filename)
{
	int i;
	for (i = 0; filters [i] != 0; i ++)
	{
		if (filters [i] (filename) == 0)
		{
			return 0;
		}
	}
	return 1;
}

